home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000270_not-a-real-address@usa.net_Fri Apr 30 16:41:09 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
2KB
Path: newsmaster.cc.columbia.edu!feed1.nycmny01.us.to.verio.net!nntp2.tagonline.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.mathworks.com!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!news.supernews.com!not-for-mail
From: those who know me have no need of my name <not-a-real-address@usa.net>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Strange error happens when building G-Kermit on a Slackware 9.1
box
Date: 30 Apr 2004 08:12:09 GMT
Organization: earthfriends
Message-ID: <m1isfhaobw.gnus@usa.net>
References: <o30kc.62819$um3.1202849@bgtnsc04-news.ops.worldnet.att.net> <slrnc92ask.4nt.fdc@sesame.cc.columbia.edu>
User-Agent: Gnus/5.110002 (No Gnus v0.2) XEmacs/21.4 (Rational FORTRAN,
linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@supernews.com
Lines: 36
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14989
in comp.protocols.kermit.misc i read:
>Evidently it is newly necessary to replace:
>
> extern int errno;
>
>with:
>
> #include <errno.h>
that's been formally necessary since c was standardized, or perhaps more
pragmatically when using a c89/c90 or c99 conforming implementation ...
,----
| errno
|
| which expands to a modifiable lvalue that has type int , the value
| of which is set to a positive error number by several library
| functions. It is unspecified whether errno is a macro or an
| identifier declared with external linkage. If a macro definition is
| suppressed in order to access an actual object, or a program defines
| an external identifier with the name errno , the behavior is
| undefined.
`----
>This is apparently part of the trend to convert errno from an
>ordinary scalar variable to some kind of a per-thread object.
yes. the intersection of c and various threading standards tends to demand
that errno be thread-specific and i'm not aware of any implementations that
do so with some form of behind-the-scenes magic for the object, all seem to
use a macro that expands to, essentially, (*__errno()) which dereferences a
pointer to the thread specific object.
--
a signature